<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app">
        <p v-text="username"></p>
        <!-- <p v-text="gender">性别:</p> -->
        <p>性别:{{ gender }}</p>
        <hr>
        <p>年龄: {{age}}</p>
        <hr>
        <div v-text="info"></div>
        <div>{{ info }}</div>
        <div v-html="info"></div>
    </div>
    
    <script>
        const vm = new Vue({
            el: "#app",
            data: {
                username: '老铁',
                gender: '女',
                age: 20,
                info: "<h4 style='color: aqua;'>欢迎欢迎，热烈欢迎</h4>"
            }
        })

    </script>
</body>
</html>